package br.ufrj.arch.main;

import br.ufrj.arch.Bit;
import br.ufrj.arch.Bus;
import br.ufrj.arch.BusConnectable;
/**
 * Classe auxiliar para ajudar a testar o Barramento.
 * @author Raphael
 *
 */
public class BusMock implements BusConnectable {

	private Bit[] data;
	
	public BusMock(Bit[] data) {
		super();
		this.data = data;
	}
	
	public BusMock() {
		super();
	}

	public void setData(Bit[] data) {
		this.data = data;
	}

	@Override
	public Bit[] getData() {
		return data;
	}

	@Override
	public void recieve(Bus bus) {
		setData(bus.getData());
	}

}
